package org.example.paymentservice.repository;

import org.example.paymentservice.entity.Order;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface OrderRepository extends JpaRepository<Order, Long> {
    List<Order> findByUserId(Long userId);
    List<Order> findByCourseId(Long courseId);
    List<Order> findByUserIdAndStatus(Long userId, Order.PaymentStatus status);
}